package com.tmsb.bigscreen.mapper.mysql;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 *Description:
 *Version:1.0.0
 *@author shihb
 *@date 2020/6/28 11:29
 */
@Mapper
@Repository
public interface MallDao {
  @Select("SELECT title FROM goods where id=#{id}")
  String getGoodNameById(@Param("id") String id);

  @Select("SELECT name FROM shop where user_id=#{user_id}")
  String getSellerNameById(String user_id);
}
